package com.dstz.demo.core.manager.impl;

import com.dstz.base.manager.impl.BaseManager;
import com.dstz.demo.core.dao.ContentDao;
import com.dstz.demo.core.manager.ContentManager;
import com.dstz.demo.core.model.Content;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 内容表 Manager处理实现类
 * @author aschs
 * @email aschs@qq.com
 * @time 2020-02-20 19:52:05
 */
@Service("contentManager")
public class ContentManagerImpl extends BaseManager<String, Content> implements ContentManager {

	@Resource
	private ContentDao contentDao;



	@Override
	public List<Content> findHelpList() {
		List<Content> contents = contentDao.findHelpList();
		return contents;
	}

	@Override
	public List<Content> findByTitle(String title) {
		List<Content> contents = contentDao.findByTitle(title);
		return contents;
	}

	@Override
	public Content findAboutUs() {
		Content content = contentDao.findAboutUs();
		return content;
	}
}
